package com.forester.foresterplatform.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

import com.forester.foresterplatform.system.entity.BaseEntity;
import org.springframework.data.annotation.Id;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("system_operation_log")
public class OperationLog extends BaseEntity {

    /**
    * 主键
    */
    @Id
    private Long id;

    /**
    * 操作内容描述
    */
    private String description;

    /**
    * 耗时
    */
    private Long duration;

    /**
    * IP地址
    */
    private String ip;

    /**
    * 方法名
    */
    private String method;

    /**
    * 操作类型
    */
    private Integer operationType;

    /**
    * 参数
    */
    private String params;

    /**
    * 返回结果
    */
    private String result;

    /**
    * 操作时间
    */
    private LocalDateTime time;

    /**
    * 操作用户名
    */
    private String username;

}